home *** CD-ROM | disk | FTP | other *** search
/ Java Programmer's Toolkit / Java Programmer's Toolkit.iso / solaris2 / jdk / bin / java_g < prev    next >
Encoding:
Korn shell script  |  1995-10-30  |  1.3 KB  |  49 lines

  1. #! /bin/ksh
  2. #
  3. #     @(#)java_wrapper.sh    1.14 95/10/14
  4. #
  5. #=================================================================
  6. #    STOP - THIS SCRIPT AND JAVA WILL NOT RUN AT ALL UNDER
  7. #    SUNOS4.X, AKA SOLARIS 1.X.  
  8. #
  9. #    The problem is not with the shell used the run this script -
  10. #    the binary software will simply not run at all under Sunos
  11. #    4.x.  I am sorry if you missed earlier warnings and have
  12. #    downloading this software expecting it to run on SUNOS 4.x.  A
  13. #    port to the SUNOS 4.x platform is underway and will be
  14. #    publically released as soon as we have it available.  For the
  15. #    latest information see our home page at http://java.sun.com/
  16. #=================================================================
  17.  
  18. # Set up default variable values if not supplied by the user.
  19.  
  20. PRG=`whence $0` >/dev/null 2>&1
  21. J_HOME=`dirname $PRG`/..
  22.  
  23. if [ -z "$JAVA_HOME" ] ; then
  24.     export JAVA_HOME
  25.     JAVA_HOME=$J_HOME
  26. fi
  27.  
  28. export CLASSPATH
  29. if [ -z "$CLASSPATH" ]
  30. then
  31.     CLASSPATH="."
  32. fi
  33.  
  34. CLASSPATH="$CLASSPATH:$J_HOME/classes:$J_HOME/classes.zip"
  35.  
  36. export LD_LIBRARY_PATH
  37. LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$J_HOME/lib/`/usr/ucb/arch`"
  38.       
  39. progname=`basename $0`
  40. prog=$J_HOME/bin/`/usr/ucb/arch`/${progname}
  41.  
  42. if [ -f $prog ]
  43. then
  44.     eval exec $prog $opts '"$@"'
  45. else
  46.     echo >&2 "$progname was not found in ${prog}"
  47.     exit 1
  48. fi
  49.